<div class="zs-body" data-ng-init="formInit('appupdatenet', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('appupdatenet');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">内容管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">APP更新</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addRow('appupdatenet') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('appupdatenet', appupdatenet.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('appupdatenet')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="版本" ng-model="appupdatenet.queryObject['version']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="版本编号" ng-model="appupdatenet.queryObject['numversion']"/>
                </span>
				<span class="search-warpper">
                    <ag-Datebox id='qi_createtime' editable='false' showcurday='true'
                       		class="zs-input" style="width:175px;height: 28px"
                       		ng-model="appupdatenet.queryObject['createtime']" >
				   	</ag-Datebox>
                </span>
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('appupdatenet')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('appupdatenet','allCheckbox');" />
                                    </th>
									<th>版本</th>
									<th>版本编号</th>
									<th>更新内容</th>
									<!-- <th>下载地址</th> -->
									<th>创建时间</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in appupdatenet.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('appupdatenet',r);"
                                            ng-model="r.selected" />
                                    </td>
									<!--  版本 -->
            						<td>
                                        <a ng-click="editRow('appupdatenet',r) && openWindow('edit');">
                                            <label ng-bind="r.version"></label>
                                        </a>
                                   </td>
									<!--  版本编号 -->
            						<td>
                                        <a ng-click="editRow('appupdatenet',r) && openWindow('edit');">
                                            <label ng-bind="r.numversion"></label>
                                        </a>
                                   </td>
									<!--  更新内容 -->
            						<td>
                                        <a ng-click="editRow('appupdatenet',r) && openWindow('edit');">
                                            <label ng-bind="r.content"></label>
                                        </a>
                                   </td>
									<!--  下载地址 -->
            						<!-- <td>
                                        <a ng-click="editRow('appupdatenet',r) && openWindow('edit');">
                                            <label ng-bind="r.url"></label>
                                        </a>
                                   </td> -->
									<!--  创建时间 -->
								   <td>
                                        <a ng-click="editRow('appupdatenet',r) && openWindow('edit');">
                                            <label ng-bind="r.createtime | asDate | date:'yyyy-MM-dd HH时'"></label>
                                        </a>
                                   </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='appupdatenet'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="APP更新编辑" width='1200px' height='600px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
          					<tr>
                                <td class="text" width="20%">版本</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="appupdatenet.editRow.version" class="zs-input" />
                                </td>
                                <td class="text" width="20%">版本编号</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="appupdatenet.editRow.numversion" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">创建时间</td>
                                <td class="left" width="30%">
                                    <ag-Datebox id='fi_createtime' editable='false'
                                    		class="zs-input" style="width:175px;height: 28px"
                                    		ng-model="appupdatenet.editRow.createtime" >
                                   	</ag-Datebox>
                                </td>
                                <td class="text" width="20%">更新包上传</td>
                                <td class="left" width="30%">
									<ag-Upload ng-model="appupdatenet.editRow.url" para="{'uploadUrl':'/userfile/plupload/appUpdate'}"></ag-Upload>
                                	<!-- <input type="text" ng-model="appupdatenet.editRow.url" class="zs-input" /> -->
                                </td>
                            </tr>
						   <tr>
							   <td class="text" width="15%">更新内容</td>
							   <td colspan="3" class="left" width="85%">
							   	<ag-Edit name='news_text' ng-model="appupdatenet.editRow.content" 
							   	    style="width: 950px;height: 400px"></ag-Edit>
							   </td>
                            </tr>
							
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('appupdatenet', appupdatenet.editRow, saveCloseWindow)"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>